package 多线程01_启动线程;

/**
 * @ClassName: 多线程01_启动线程.TestThread01
 * @Author: AllenSun
 * @Date: 2022/3/18 上午12:53
 */
public class TestThread01 {
    public static void main(String[] args) {
        Hero gareen = new Hero("盖伦",616,50);
        Hero teemo = new Hero("提莫",300,30);
        Hero bh = new Hero("赏金猎人",350,65);
        Hero leesin = new Hero("盲僧",455,80);

        while(!teemo.isDead()){
            teemo.attactHero(gareen);
        }

        while(!leesin.isDead()){
            bh.attactHero(leesin);
        }
    }

}
